﻿using System;
using PagedList;
using System.Web.Mvc;
using Ayatta.Contract.Domain;
using System.Collections.Generic;

namespace Web.Seller.Models
{
    public static class OrderControllerModel
    {
        public class Index
        {
            public string Id { get; set; }
            public string Name { get; set; }
            public string Buyer { get; set; }
            public DateTime? BeginDate { get; set; }
            public DateTime? EndDate { get; set; }
            public OrderStatus? Status { get; set; }
            public OrderCategory Category { get; set; }
            public byte? Comment { get; set; }
            public IPagedList<Order> Orders { get; set; }

        }

        public class Detail
        {
            public Order Order { get; set; }

            public IList<Shipment> Shippings { get; set; }
        }

        public class Address
        {
            public Order Order { get; set; }
            public SelectList Province { get; set; }
            public SelectList City { get; set; }
            public SelectList District { get; set; }

        }

        public class Consign
        {
            public Order Order { get; set; }
            public IList<Area> Areas { get; set; }
            public SelectList Province { get; set; }
            public SelectList City { get; set; }
            public SelectList District { get; set; }
            public string[] Shippings { get; set; }
            public IList<UserAddress> Addresses { get; set; }
            public IList<LogisticsCompany> LogisticsCompanies { get; set; }

            public UserAddress DefaultSendAddress { get; set; }
            public UserAddress DefaultRefundAddress { get; set; }

            public string JsonData { get; set; }
        }
    }
}